-controller.cards(pane_id).each do |c|
  - i = c.issue
  - assignee_name = controller.assignee_name(i.assigned_to)
  - pane = KanbanPane.find(pane_id)
  .kanban-card.card-max-height.tooltip{:id=>"#{i.id}"}
    /,:title=>"##{i.priority_id}:#{i.subject}<br>To:#{assignee_name}<br>#{i.description}"}
    .card-header{:style => "overflow:hidden; font-size:10px"}
      = link_to "##{i.id}", issue_path(i)
      = avatar(i.assigned_to, :size => "12", :title=>assignee_name, :style=>"float:right")
      = hidden_field_tag :issue_status_id, i.status_id
      = hidden_field_tag :assignee_id, i.assigned_to_id
      = hidden_field_tag :kanban_state_id, pane.kanban_state.id
      = hidden_field_tag :developer_id, c.developer_id
      = hidden_field_tag :verifier_id, c.verifier_id
      = hidden_field_tag :subject, i.subject
      = hidden_field_tag :start_date, i.start_date
      = hidden_field_tag :due_date, i.due_date
      = hidden_field_tag :created_on, i.created_on.utc.strftime("%Y/%m/%d %H:%M:%S UTC")
      = hidden_field_tag :tracker_id, i.tracker_id
      = hidden_field_tag :version_id, i.fixed_version_id
      = hidden_field_tag :est_hours, i.estimated_hours
      %span.tip{:style => "font-weight: normal; font-size:11px"}
        %strong= link_to "##{i.id} #{i.subject}", issue_path(i)
        %br
        %strong Assignee:
        = assignee_name
        %br
        %strong   Status:
        = i.status.name
        %br
        %strong Description:
        = i.description
    .card-content{:style => "font-size:10px;position:relative"}
      %span{:style=>"margin:4em 0 0 0; text-align:center;font-weight:bold;color:navy"}="P#{i.priority.position - 1}"
      ="#{i.subject}"
      - close_state = KanbanState.close_state(pane.kanban)
      - if KanbanWorkflow.transition_allowed?(pane.kanban_state, close_state ,pane.kanban.id)
        .close-check-box
          = check_box_tag 'close_check_box', '', false, :style => "float:right;position:absolute;bottom:0"
